package com.lsa.letcode.the9.palindrome;

import org.junit.Assert;
import org.junit.Test;

public class PalindromeTest {
	@Test
	public void test() {
		Solution s = new Solution();
		
		Assert.assertEquals(false, s.isPalindrome(-1));
		Assert.assertEquals(true, s.isPalindrome(1));
		Assert.assertEquals(true, s.isPalindrome(121));
		Assert.assertEquals(true, s.isPalindrome(1234321));
		Assert.assertEquals(true, s.isPalindrome(234565432));
		Assert.assertEquals(false, s.isPalindrome(1234565432));
		Assert.assertEquals(false, s.isPalindrome(234566432));
		Assert.assertEquals(false, s.isPalindrome(234665432));
		Assert.assertEquals(false, s.isPalindrome(234565431));
		Assert.assertEquals(false, s.isPalindrome(134565432));
	}
}
